package com.example.demo

import android.util.Log
import com.example.demo.base.BaseActivity
import com.example.demo.mvp.presenter.MainPresenter
import com.example.demo.mvp.view.MainView
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BaseActivity<MainView, MainPresenter>() {

    override fun getLayoutId(): Int = R.layout.activity_main;

    override fun init() {
       btn_test.setOnClickListener {
           getPresenter()!!.getTest("wwwww")
       }
    }

    override fun initData() {
        TODO("Not yet implemented")
    }

    override fun createPresenter() = MainPresenter()

    override fun <T> setData(data: T) {
        Log.e("test","===========>$data")
    }

    override fun setError(err: String) {
        TODO("Not yet implemented")
    }
}


